/*
 * Instruction13.java
 *
 * Created on March 22, 2007, 8:46 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package moto9s12sim;

/**
 *
 * @author Fergus Earnshaw
 */
public class Instruction13 extends Instruction{
    
    /** Creates a new instance of Instruction13 */
    public Instruction13() {
    
        this.strAssemblyCode = "EMUL";
        this.bCodes = new byte[1];
        this.bCodes[0] = (byte)Integer.parseInt("13",16);
    }
    
    public boolean excute(M9S12 cpu)
    {
        this.shAddr = cpu.PC.getRegister();
        cpu.PC.inc();
        
        //TO DO CODE INSTRUCTION
        
        //set flags
        //TO DO code last two flags
        //cpu.CC.setN();
        //cpu.CC.setZ();
        //cpu.CC.setC(true);

        
        printInstruction(cpu);
        //I think the first invalid instruction should halt excution
        return true;
    }  
    
}
